package com.blb.blb_erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenheng
 * @since 2020-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SMenu implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.INPUT)
    private String id;
    /**
     * 层级
     */
    private String menuPid;

    /**
     * 菜单名字
     */
    private String menuName;

    /**
     * 地址
     */
    private String menuUrl;

    /**
     * 权限
     */
    private String menuPermission;

    /**
     * 子菜单
     */
    @TableField(exist = false)
    private List<SMenu> subMenus = new ArrayList<>();

}
